﻿using System;
using System.Collections.Generic;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.HtmlControls;

/// <summary>
/// Summary description for MasterBase
/// </summary>
namespace SiteECSWeb
{
    public class MasterBase : MasterPage
    {
        public MasterBase()
        {
            //
            // TODO: Add constructor logic here
            //
        }

        public string CompanyInfo
        {
            get
            {
                return "التمثيل التجارى المصرى";
            }
        }

        #region PageEvent
        //protected override void OnLoad(EventArgs e)
        //{
        //    Page.ClientScript.RegisterHiddenField("PageLoadedHiddenTxtBox", "");

        //    string scriptCommand = "document.getElementById('PageLoadedHiddenTxtBox').value ='Set';";
        //    string preSubmitCommad = "var loaded=document.getElementById('PageLoadedHiddenTxtBox').value; if(loaded=='Set'){return true};alert('please wait for page to completely load before submitting to site.');return false;";

        //    Page.ClientScript.RegisterStartupScript(this.GetType(), "onLoad", scriptCommand, true);
        //    Page.ClientScript.RegisterOnSubmitStatement(this.GetType(), "OnSubmit", preSubmitCommad);
        //    base.OnLoad(e);
        //} 
        #endregion
      
    }
}